﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace digitwhu.Models.IRepositorys
{
     interface IUserRepository : IRepository<UserInfo>
    {
         int AddUser(string userName, string password, string email);
         int GetUserLogin(string email, string password);
         bool UpdateUserInfo(int userId, string realName, decimal studentId, string school,
            DateTime birthday, string homeAddress, string avatar, int dormId,string nickName);
         int UpdateUserPassword(string oldPassword, string newPassword, int userId);
         bool GetUserIsInUserAttention(int userPay, int userBe);
         bool GetUserInInUserBlackList(int userMake, int userBe);
    }
}